<?php 
defined('RUN_KATANA') or die('Restricted access'); 
$commander->setPostAction('editor_ad');
if(defined('AJAX_RUN'))
{ require('forms/fields-items.php'); }
else
{
?>
<input type="hidden" name="ad" value="<?php echo $_REQUEST['ad']; ?>" />
<div class="tabs" style="height:100%;">
	<ul>
    	<li><a href="#ad_info" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('ad')).' '.ucfirst($txt->getWord('info')); ?></a></li>
		<li><a href="#ad_images" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('ad')).' '.ucfirst($txt->getWord('images')); ?></a></li>
	</ul>
	<div id="ad_info"><?php require('forms/editor-info.php'); ?></div> 
	<div id="ad_images"><?php require('forms/editor-images.php'); ?></div> 
</div>
<?php 
}
?>